export {}
class Father{
    static parentName: string = 'fathername'
    public name: string // public
    protected age: number         // protected
    private money: number       // private
    constructor(name: string, age: number, money: number){
        this.name = name
        this.age = age
        this.money = money
    }
    getName():string{
        return this.name
    }
    setName(name:string):void{
        this.name = name
    }
}
class Child extends Father{
    static childName: string = 'childName'
    constructor(name: string, age: number, money: number) {
        super(name, age, money)
    }
    toString(){
        console.log('childtosring')
    }
    desc(){
        console.log(this.age,this.name, this.money)
    }
}

let child = new Child('zhufeng',11)
console.log(child.name)
console.log(child.age)
console.log(child.money)
console.log(child.toString)
console.log(Child.childName, Child.parentName)